<?php 
session_start();
require_once("include/authen.php");
 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
	<title>Kongju Clinic | Main Screen</title>
		<script src="./js/jquery-1.4.4.min.js"></script> 
		<script src="./js/jquery-ui-1.8.9.custom.min.js"></script> 
		<script type="text/javascript" src="js/superfish.js"></script>
		<script type="text/javascript" src="js/custom.js"></script>
		 <link rel="stylesheet" type="text/css" href="css/ui/ui.base.css" />     
		 <link rel="stylesheet" type="text/css" href="css/themes/gray_lightness/ui.css" />  
			
		
</head>
<body class="layout1014">
	<div id="page_wrapper" >
		<div id="page-header">
			<div id="page-header-wrapper" class="fixed">
				<div id="top" >
				</div>
				<div class="welcome">
						<span class="note">Welcome, <a href="#" title="Welcome <?php echo $_SESSION['username'];?>"> <?php echo $_SESSION['username'];?></a></span>
						<!--a class="btn ui-state-default ui-corner-all" href="#">
							<span class="ui-icon ui-icon-wrench"></span>
							Settings
						</a-->
						<a class="btn ui-state-default ui-corner-all" href="#" id='btnAccount'>
							<span class="ui-icon ui-icon-person"></span>
							My account
						</a>
						<a class="btn ui-state-default ui-corner-all" href="logout.php">
							<span class="ui-icon ui-icon-power"></span>
							Logout
						</a>						
					</div>
				<ul id="navigation" >
					<li>
						<a href="#" onclick="javascript:void(0);" class="sf-with-ul">Home</a>
						<ul>
							<li><a href="#">Dashboard</a></li>
							<?php  if($_SESSION["permission"][$posScreen]["View"]=="1"){?>
							<li><a href="pos.php">POS</a></li>
							<?php }?>
						</ul>
					</li>
					 
					<?php 
						//1=Header Office 
						//0=Branch
						if ($_SESSION['branchtype']=="1"){
					?>
					<li>
						<a href="#" class="sf-with-ul">Master</a>
						<ul>
							<?php  if($_SESSION["permission"][$branchScreen]["View"]=="1"){?>
							<li>
								<a href="branch.php">Branch Maintenance</a>
							</li>
							<?php } if($_SESSION["permission"][$card_couponScreen]["View"]=="1"){ ?>
							<li>
								<a href="card_coupon.php">Card & Coupon Maintenance</a>
							</li>
							<?php } if($_SESSION["permission"][$customerScreen]["View"]=="1"){ ?>							
							<li>
								<a href="customer.php">Customer Maintenance</a>
							</li>		
							<?php } if($_SESSION["permission"][$discountScreen]["View"]=="1"){ ?>							
							<li>
								<a href="ex_discount.php">Discount Maintenance</a>
							</li>		
							<?php } if($_SESSION["permission"][$productScreen]["View"]=="1"){ ?>							
							<li>
								<a href="product.php">Product Maintenance</a>
							</li>	
							<?php }  if($_SESSION["permission"][$categoryScreen]["View"]=="1"){ ?>							
							<li>
								<a href="category.php">Product Category Maintenance</a>
							</li>	
							<?php } if($_SESSION["permission"][$unitScreen]["View"]=="1"){ ?>														
							<li>
								<a href="unit.php">Product Unit Maintenance</a>
							</li>								
							<!--li>
								<a href="product.php" class="sf-with-ul">Product Maintenance</a>
								<ul>
									<li><a href="category.php">Category</a></li>
									<li><a href="unit.php">Unit</a></li>
								</ul>
							</li-->
							<?php } if($_SESSION["permission"][$positionScreen]["View"]=="1"){ ?>														
							<li>
								<a href="position.php">Position Maintenance</a>
							</li>							
							<?php } if($_SESSION["permission"][$supplierScreen]["View"]=="1"){ ?>																				
							<li>
								<a href="suppliers.php">Suppliers Maintenance</a>
							</li>
							<?php } if($_SESSION["permission"][$userScreen]["View"]=="1"){ ?>																					
							<li>
								<a href="user.php">User Maintenance</a>
							</li>	
							<?php } if($_SESSION["permission"][$userGroupScreen]["View"]=="1"){ ?>																												
							<li>
								<a href="usergroup.php">User Group Maintenance</a>
							</li>
							<?php }?>
						</ul>
					</li>
					<?php }?>
					<li>
						<a href="#">Report</a>
						<ul>
						<?php if($_SESSION["permission"][$customer_information_report]["View"]=="1"){ ?>																												
							<li>
								<a href='customer_info.php'>Customer Information Report</a>
							</li>
						<?php } if($_SESSION["permission"][$daily_sale_report]["View"]=="1"){ ?>		
							<li>
								<a href='report_daily_sale.php'>Daily Sale Report</a>
							</li>
						<?php } if($_SESSION["permission"][$monthly_sale_report]["View"]=="1"){ ?>	
							<li>
								<a href='report_monthly_sale.php'>Monthly Sale Report</a>
							</li>
						<?php }?>	
						</ul>
					</li>
				</ul>
			</div>
		</div>
		<div id="page-layout" class="fixed" >
			<div id="page-content">
				<div class="inner-page-title" style='margin-top:10px;padding:10px;padding-bottom:0;'>
					<h2>Welcome to Kongju Clinic !!!</h2>
					<span>Please seleced menu...</span>
				</div>			
					<div id="dashboard-buttons">
					<ul>
					<?php  if($_SESSION["permission"][$posScreen]["View"]=="1"){?>
						<li>
							<a href="pos.php" class="POS tooltip" title="POS">
								POS
							</a>
						</li>
					<?php }?>
				 
						<li>
							<a href="calendar.php" class="Calendar tooltip" title="Calendar">
							 Calendar 
							</a>
	
						</li>
						<li>
							<a href="customer.php" class="Customer tooltip" title="Customer">
 								Customer
							</a>
						 </li>
							<li>
							<a href="user.php" class="User tooltip" title="User">
 								User
							</a>
						 </li>
						 	 <li>
							<a href="product.php" class="Product tooltip" title="Product">
 								Product
							</a>
						 </li>		 
					  
						<li>
							<a href="logout.php" class="Logout tooltip" title="Logout">
								LOGOUT
							</a>
						</li>
					</ul>
					<div class="clear"></div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
		<div id="footer">
			<img src="images/L-Footer.png" width="1025px" height="62px"/>
		</div>
	</div>
	<link href='css/jquery-ui-1.8.9.custom.css' rel='stylesheet' type='text/css' />		 
	<INPUT type=hidden value="<?php echo $_SESSION['userid'];?>" id="m_userId" name="m_userId"> 
	<INPUT type=hidden value="<?php echo $_SESSION['branchtype'];?>" id="m_isHo" name="m_isHo"> 
	
	<div id="dialog-Account" style='z-index:9999;font-size:12px;font-family:tahoma;'>
	<p class="validateTips" style='color:red'>* fields are required.</p>
	<form>
	<table cellpadding="2" cellspacing="5" border="0" width="100%" class="fieldset">
		<tr>
			<td width="25%"><label for="name" style='font-weight:bold' >User Name *</label></td>
			<td width="75%"><input type="text" name="AccUserName"  id="AccUserName" style="border:1px solid #ccc;padding:4px;font-size:12px;width:80%" /></td></tr>
		<tr>
			<td  ><label for="name" style='font-weight:bold'>Password *</label></td>
			<td  ><input type="password" name="AccPassword"  id="AccPassword" style="border:1px solid #ccc;padding:4px;font-size:12px;width:80%" /></td></tr>
		<tr>
			<td  ><label for="name" style='font-weight:bold'>Frist Name *</label></td>
			<td  ><input type="text" name="AccFirstName"  id="AccFirstName" style="border:1px solid #ccc;padding:4px;font-size:12px;width:80%" /></td>
		</tr>
		<tr>
			<td  ><label for="name" style='font-weight:bold'>Last Name </label></td>
			<td  ><input type="text" name="AccLastName"  id="AccLastName" style="border:1px solid #ccc;padding:4px;font-size:12px;width:80%" /></td>
		</tr>
		<tr>
			<td  ><label for="name" style='font-weight:bold'>Email * </label></td>
			<td  ><input type="text" name="AccEmail"  id="AccEmail" style="border:1px solid #ccc;padding:4px;font-size:12px;width:80%" /></td>
		</tr>		
		<tr>
			<td><label for="name" style='font-weight:bold'>Telephone * </label></td>
			<td><input type="text" name="AccTelephone"  id="AccTelephone" style="border:1px solid #ccc;padding:4px;font-size:12px;width:80%" /></td>
		</tr>			
		<tr>
			<td><label for="name" style='font-weight:bold'>Position</label></td>
			<td><select name="AccPositionID" style="width:15em;font-size:12px;padding:5px;"  id="AccPositionID" /></td></tr>
		<tr>
			<td><label for="name" style='font-weight:bold'>Group</label></td>
			<td ><select style="width:15em;font-size:12px;padding:5px;" name="AccGroupID"  id="AccGroupID" /></td></tr>
		<tr>
			<td><label for="name" style='font-weight:bold'>Branch</label></td>
			<td ><select style="width:15em;font-size:12px;padding:5px;border:1px solid #ccc;"   name="AccBranchID"  id="AccBranchID"  /></td></tr>
		<tr>
			<td><label for="status" style='font-weight:bold'>Status </label></td>
			<td><input type="checkbox" name="AccIsActived" id="AccIsActived" value="" checked /><label for="status" style='font-weight:normal'>Actived</label></td>
		</tr>
		<tr class="tr_ac_sms">
			<td><label for="status" style='font-weight:bold'>SMS </label></td>
			<td><input type="checkbox" name="AccSMS" id="AccSMS" value='' checked />
				<label for="status" style='font-weight:normal'>Received SMS from Branch</label>
			</td>
		</tr>
	</table>
</form>
</div>	
</body>

<!-- Ripped by All-Files.pl -->
</html>		